package com.mtsmda.bookjava7.chapter2.polymorphismEx;

public class PolymorphismEx {
	
	public static void main(String[] args) {
		PlayerPiece playerPiece = new PlayerPiece();
		Object object = playerPiece;
		playerPiece.animate();
		playerPiece.movePiece();
		AnimatableI animatableI = playerPiece;
		animatableI.animate();
		GameShape gameShape = playerPiece;
		gameShape.movePiece();
	}
}